//
//  CarImageManager.m
//  YueYueSpecailCarDriver
//
//  Created by 李亚军 on 2017/6/2.
//  Copyright © 2017年 黄旺鑫. All rights reserved.
//

#import "CarImageManager.h"
#import <QXYueYueModels/QXYueYueModels-umbrella.h>
#import "AppManagerHeader.h"
@implementation CarImageManager

/// 获取小车的图像
+ (UIImage *)getCarImage {
    
    QXYYUserDriverModel *driverModel = [QXYYUserDriverModel QXYY_unarchiveObject];
    if (driverModel.type == DriverTypeTaxi) { // 出租车
        
        UIImage *image = [UIImage imageNamed:@"chuzuche_map_icon_car"];
        
        return image;
    }else if (driverModel.type == DriverTypeExpressCar) { // 快车
        
        UIImage *image = [UIImage imageNamed:@"kuaiche_map_icon_car"];
        
        return image;
    }else if (driverModel.type == DriverTypeCargoTaxi) { // 货的
        
        UIImage *image = [UIImage imageNamed:@"huoche_map_icon_car"];
        
        return image;
    }else if (driverModel.type == DriverTypeRider) { // 骑手
        
        UIImage *image = [UIImage imageNamed:@"paotui_map_icon_car"];
        
        return image;
    }else if (driverModel.type == DriverTypeHouseMoving) { // 搬家
        
        UIImage *image = [UIImage imageNamed:@"banjia_map_icon_car"];
        
        return image;
    }else { // 专车
        
        UIImage *image = [UIImage imageNamed:@"zhuanche_map_icon_car"];
        
        return image;
    }
}


@end
